package com.charger.PromoteOperations.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName rulesparticipation
 */
@TableName(value ="rulesparticipation")
public class Rulesparticipation implements Serializable {
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 规则名称
     */
    private String name;

    /**
     * 条件
     */
    private String conditions;

    /**
     * 条件关系
     */
    private String conditionalrelationships;

    /**
     * 备注
     */
    private String remark;

    /**
     * 逻辑删除
     */
    private Integer del;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    public Long getId() {
        return id;
    }

    /**
     * 序号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 规则名称
     */
    public String getName() {
        return name;
    }

    /**
     * 规则名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 条件
     */
    public String getConditions() {
        return conditions;
    }

    /**
     * 条件
     */
    public void setConditions(String conditions) {
        this.conditions = conditions;
    }

    /**
     * 条件关系
     */
    public String getConditionalrelationships() {
        return conditionalrelationships;
    }

    /**
     * 条件关系
     */
    public void setConditionalrelationships(String conditionalrelationships) {
        this.conditionalrelationships = conditionalrelationships;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 逻辑删除
     */
    public Integer getDel() {
        return del;
    }

    /**
     * 逻辑删除
     */
    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Rulesparticipation other = (Rulesparticipation) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getConditions() == null ? other.getConditions() == null : this.getConditions().equals(other.getConditions()))
            && (this.getConditionalrelationships() == null ? other.getConditionalrelationships() == null : this.getConditionalrelationships().equals(other.getConditionalrelationships()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getConditions() == null) ? 0 : getConditions().hashCode());
        result = prime * result + ((getConditionalrelationships() == null) ? 0 : getConditionalrelationships().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", conditions=").append(conditions);
        sb.append(", conditionalrelationships=").append(conditionalrelationships);
        sb.append(", remark=").append(remark);
        sb.append(", del=").append(del);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}